package at.fhooe.engine.event.events;

import at.fhooe.engine.event.EventListener;

public class MouseMovedEvent extends Event {

	public static final String TYPE = "MouseMovedEvent";
	private final int m_newPosX;
	private final int m_newPosY;

	public MouseMovedEvent(int newPosX, int newPosY) {
		super(TYPE);
		m_newPosX = newPosX;
		m_newPosY = newPosY;
	}

	public int getNewX() {
		return m_newPosX;
	}

	public int getNewY() {
		return m_newPosY;
	}
	
	@Override
	public void processEvent(EventListener eventListener) {
		((Listener) eventListener).onMouseMovedEvent(this);
	}

	public static interface Listener extends EventListener {
		public void onMouseMovedEvent(MouseMovedEvent e);
	}
}
